package ua.com.globallogic.training.subway;

public class TripsBoundCard extends SubwayCard {

    private TripsBoundCardState state;

    public TripsBoundCard(CardState state) {
        super(state);
        this.state = (TripsBoundCardState)state;
    }

    public void chargeOneTrip() {
        state.chargeOneTrip();
    }

    public int getTripsCount() {
        return state.getTripsCount();
    }
}
